package com.fkdx.common.constant;

/**
 * @author 31303
 */
public interface BaseConstant {

    /************************************************************ system ************************************************************/
    String KEY = "cityWSH13579";

    String SYSTEM = "system";

    String MSG_ID = "必要参数为空";

    String MSG_ADD_ID = "添加时不要传入id";

    String MSG_FAIL = "保存失败";

    String EXISTS_FAIL = "该商品已存在";

    String USER_NAME_FAIL = "请登陆";

    String TIME_ERROR = "请选择开始时间和结束时间";

    String TIME_GREATER_ERROR = "开始时间不能大于结束时间";

    String TIME_DAY_ERROR = "时间范围不能超过30天";

    String[] PRODUCT_HEAD = new String[]{"编号","商品名称","商品编码","库存数量","零售价","优惠价","品牌","颜色","尺码","材质","产地","原始货号","所属门店","备注"};

    /************************************************************ wechat ************************************************************/
    /**
     * 微信-公众号
     */
    String WECHAT_DOMAIN_PREFIX = "https://api.weixin.qq.com";

    /**
     * 微信请求URL-获取openid
     */
    String URL_WECHAT_OPEN_ID = WECHAT_DOMAIN_PREFIX+"/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code";

    /**
     * 微信请求URL-获取token
     */
    String URL_WECHAT_ACCESS_TOKEN = WECHAT_DOMAIN_PREFIX+"/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s";

    /**
     * 微信请求URL-发送订阅消息
     */
    String URL_WECHAT_SUBSCRIBE_MESSAGE = WECHAT_DOMAIN_PREFIX+"/cgi-bin/message/subscribe/send?access_token=%s";

    /**
     * 微信请求URL-发送模板消息
     */
    String URL_WECHAT_TEMPLATE_MESSAGE = WECHAT_DOMAIN_PREFIX+"/cgi-bin/message/template/send?access_token=%s";

    /**
     * 微信请求URL-根据标签进行群发
     */
    String URL_WECHAT_MASS_MESSAGE = WECHAT_DOMAIN_PREFIX+"/cgi-bin/message/mass/sendall?access_token=%s";

    /**
     * 微信请求URL-根据 OpenID 列表群发
     */
    String URL_WECHAT_MASS_ALL_MESSAGE = WECHAT_DOMAIN_PREFIX+"/cgi-bin/message/mass/send?access_token=%s";

    /**
     * 微信请求URL-预览接口
     */
    String URL_WECHAT_MASS_PREVIEW_MESSAGE = WECHAT_DOMAIN_PREFIX+"/cgi-bin/message/mass/preview?access_token=%s";

    /**
     * 微信请求URL-上传永久素材
     */
    String ADD_PERMANENT_MATERIAL_URL = WECHAT_DOMAIN_PREFIX+"/cgi-bin/material/add_material?access_token=##ACCESS_TOKEN##";

    /**
     * 微信请求URL-获取永久素材(下载)
     */
    String GET_PERMANENT_MATERIAL_URL = WECHAT_DOMAIN_PREFIX+"/cgi-bin/material/get_material?access_token=ACCESS_TOKEN";

    /**
     * 微信请求URL-删除永久素材
     */
    String DELETE_PERMANENT_MATERIAL_URL = WECHAT_DOMAIN_PREFIX+"/cgi-bin/material/del_material?access_token=ACCESS_TOKEN";


    /************************************************************ work wechat ************************************************************/
    /**
     * 企微
     */
    String WORK_WECHAT_DOMAIN_PREFIX = "https://qyapi.weixin.qq.com";

    /**
     * 企业微信请求URL-获取token
     */
    String URL_WORK_WECHAT_ACCESS_TOKEN = WORK_WECHAT_DOMAIN_PREFIX+"/cgi-bin/gettoken?corpid=%s&corpsecret=%s";

    /**
     * 企业微信请求URL-发送消息
     */
    String URL_WORK_WECHAT_SEND_MESSAGE = WORK_WECHAT_DOMAIN_PREFIX+"/cgi-bin/message/send?access_token=%s";

    /**
     * 企业微信请求URL-创建菜单
     */
    String URL_WORK_WECHAT_CREATE_MENU = WORK_WECHAT_DOMAIN_PREFIX+"/cgi-bin/menu/create?access_token=%s&agentid=%s";

    /**
     * 企业微信请求URL-群列表
     */
    String URL_WORK_WECHAT_GROUP_LIST = WORK_WECHAT_DOMAIN_PREFIX+"/cgi-bin/externalcontact/groupchat/list?access_token=%s";

    /**
     * 企业微信请求URL-群详情
     */
    String URL_WORK_WECHAT_GROUP_DETAIL = WORK_WECHAT_DOMAIN_PREFIX+"/cgi-bin/externalcontact/groupchat/get?access_token=%s";

    /**
     * 企业微信请求URL-获取客户详情
     */
    String URL_WORK_WECHAT_CONTACT_DETAIL = WORK_WECHAT_DOMAIN_PREFIX+"/cgi-bin/externalcontact/get?access_token=%s&external_userid=%s";

    /**
     * 企业微信请求URL-批量获取客户详情
     */
    String URL_WORK_WECHAT_CONTACT_DETAIL_BATCH = WORK_WECHAT_DOMAIN_PREFIX+"/cgi-bin/externalcontact/batch/get_by_user?access_token=%s";

    /**
     * 企业微信请求URL-获取运营管理的客户列表
     */
    String URL_WORK_WECHAT_CONTACT_LIST = WORK_WECHAT_DOMAIN_PREFIX+"/cgi-bin/externalcontact/list?access_token=%s&userid=%s";

    /**
     * 企业微信请求URL-获取运营人员列表
     */
    String URL_WORK_WECHAT_OPERATION_LIST = WORK_WECHAT_DOMAIN_PREFIX+"/cgi-bin/externalcontact/get_follow_user_list?access_token=%s";

    /**
     * 企业微信请求URL-联系我-添加
     */
    String URL_WORK_WECHAT_CONTACT_ME_ADD = WORK_WECHAT_DOMAIN_PREFIX+"/cgi-bin/externalcontact/add_contact_way?access_token=%s";

    /**
     * 企业微信请求URL-联系我-删除
     */
    String URL_WORK_WECHAT_CONTACT_ME_DEL = WORK_WECHAT_DOMAIN_PREFIX+"/cgi-bin/externalcontact/del_contact_way?access_token=%s";

    /**
     * 企业微信请求URL-修改客户备注信息
     */
    String URL_WORK_WECHAT_CONTACT_UPDATE_REMARK = WORK_WECHAT_DOMAIN_PREFIX+"/cgi-bin/externalcontact/remark?access_token=%s";

    /************************************************************ wechat pay ************************************************************/
    /**
     * 微信支付
     */
    String WECHAT_PAY_DOMAIN_PREFIX = "https://api.mch.weixin.qq.com";

    /**
     * 微信支付请求URL-交易
     */
    String URL_WECHAT_PAY_TRANSACTIONS_API = WECHAT_PAY_DOMAIN_PREFIX + "/v3/pay/transactions/jsapi";
    String URL_WECHAT_PAY_TRANSACTIONS_ID = WECHAT_PAY_DOMAIN_PREFIX + "/v3/pay/transactions/id";
    String URL_WECHAT_PAY_TRANSACTIONS_CLOSE = WECHAT_PAY_DOMAIN_PREFIX + "/v3/pay/transactions/out-trade-no/close";
    String URL_WECHAT_PAY_BILL_TRADEBILL = WECHAT_PAY_DOMAIN_PREFIX + "/v3/bill/tradebill";
}
